﻿<extend name="Public:base" />
<block name="body">
<style type="text/css">
 .input-group {
    /* position: relative; */
    display: table;
    border-collapse: separate;
    width: 200px;
}   

</style>
<!--引入弹窗插件-->
<include file="Public:artdialog" />




 <div class="main-content">
		<div class="breadcrumbs" id="breadcrumbs">
			<script type="text/javascript">
				try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
			</script>
			<ul class="breadcrumb">
				<li>
					<i class="icon-home home-icon"></i>
			 <span style="color:#428bca">{$parent_nav.name}</span>
				</li>
				<li class="active">{$one_nav.name}</li>
			</ul><!-- .breadcrumb -->
		</div>
            <style type="text/css">
                .page-content {
            padding: 0px 24px 24px;
                }
                
                .porlets-content_title {
                    height: 49px;
                    background: #b6d1f2;
                }
                .col-md-12 .icon-table{
                    color: #FFFFFF;
                    font-size: 18px;
                    font-weight: bolder;
                    line-height: 49px;
                }
            </style>
<div class="page-content">

    <form action="{:U('Index/admin_list')}" method="post" id="searchForm">
    <div class="row">
        <div class="col-md-12" style="padding:0;">
            <div class="block-web">
                    <div style="padding: 20px 0;background: #e9f0f9;height:100%;">
            <div>
             <div class="header">
             <a class="btn btn-primary btn-sm"  onclick="_es_openDilog902('{:U('Nav/index')}','菜单管理','caidanguanli')">
                <i class="icon-cog align-top bigger-125"></i>
                菜单管理
                </a>

             <a class="btn btn-primary btn-sm"  onclick="_es_openDilog902('{:U('Nav/edit_admin',array('is_add'=>1))}','添加管理员','tianjiaguanliyuan')">
                <i class="icon-edit align-top bigger-125"></i>
                添加管理员
            </a>

            <a class="btn btn-primary btn-sm"  onclick="_es_openDilog902('{:U('Nav/edit_nav_group')}','编辑权限组','bianjiquanxianzu')">
                <i class="icon-group align-top bigger-125"></i>
                权限组管理
            </a>
            </div>
		<!-- 	    <div class="col-md-8" style="text-align: left;">
			 			用户名：<input type="text" name="title" value="{$title}" >&nbsp;&nbsp;<a href="javascript:;" onclick="load()" class="btn btn-info ">搜索</a>
			    </div> -->
               <div class="form-group" style="float: left;">
                <div class="input-group col-sm-3">
                       <input class="form-control" id="title"  value="{$title}" type="text" name="title" placeholder="请输入搜索用户名" size="15">
                    </div>
                    </div>
                 <button type="button" class="btn btn-sm btn-info"  onclick="load()"> 搜索</button>
			</div>
            </div>
                <div class="porlets-content">
                    <div class="table-responsive">
                        <div id="order_list_item_content">
                            <div class="item-list-bd" style="height:100px;line-height:100px;text-align:center;">
                                <img src="__PUBLIC__/admin/images/load3.gif" />
                                加载中...
                            </div>
                        </div>
                    </div><!--/table-responsive-->
                </div><!--/porlets-content-->
            </div><!--/block-web-->
        </div><!--/col-md-12-->
    </div>
</form>
</div>
</div>
<script type="text/javascript">
    $(function(){
        goSearch("#searchForm","order_list_item_content");
      $(document).keydown(function(event){ 
        if(event.keyCode==13){ 
        load(); 
        } 
       })
    });

    function load(){
        goSearch("#searchForm","order_list_item_content");
    }

    function toParentChilder(id){
        $('#parent_id').val(id);
        goSearch("#searchForm","order_list_item_content");
    }

function clock_load_dialog(){
   setTimeout(function(){
    var win=    art.dialog.opener;
                win.load();
                top.art.dialog().close();
    },800);
}



    function delete_ok(id){
        art.dialog({
            content: "确定要删除吗？",
            icon: 'question',
            lock: true,
            opacity: 0.2,
            id:'dele',
            ok: function () {
                var url="{:U('Nav/delete_admin_ok')}";
                $.ajax({
                    'url':url,
                    'data':{id:id},
                    'dataType':'json',
                    'type':'post',
                    success:function(data){
                        goSearch("#searchForm","order_list_item_content");
                        //_reload_currentpage_datalist('order_list_item_content');
                        // goSearch("#searchForm","order_list_item_content");
                        var retstatus = data.status == 1 ? "1" : "0";
                        showvfmsg(retstatus, data.info, 1900);

                    },error:function(){
                        showvfmsg('error','请求服务器失败',2000);
                    },complete:function(){

                    }
                });


            },
            cancelVal: '取消',
            cancel: true
        });
    }
</script>
</block>
